]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
xdndHandler: prevent dummy actor from interfering with Hot Corner
authorStefano Facchini <stefano.facchini@gmail.com>
Fri, 10 Feb 2012 19:18:35 +0000 (20:18 +0100)
committerStefano Facchini <stefano.facchini@gmail.com>
Fri, 10 Feb 2012 20:16:16 +0000 (21:16 +0100)
Since the dummy actor occupies exactly the same area of the Hot Corner,
it can be erroneously picked during xdnd operations. Fix this by
hiding it from pick.

https://bugzilla.gnome.org/show_bug.cgi?id=669831

js/ui/xdndHandler.js

index 26f54322c29a3b97ada5706d36db726ba5e4ed91..dede07e1a845bc172a7ee7569bb947934c05705e 100644 (file)
@@ -17,6 +17,7 @@ const XdndHandler = new Lang.Class({
         // Used as a drag actor in case we don't have a cursor window clone
         this._dummy = new Clutter.Rectangle({ width: 1, height: 1, opacity: 0 });
         global.stage.add_actor(this._dummy);
+        Shell.util_set_hidden_from_pick(this._dummy, true);
         this._dummy.hide();
 
         // Mutter delays the creation of the output window as long